Psigpause

Section: May. 1, 1992 (2)
Updated: MiNT Programmer's Manual
Index Return to Main Contents
 

NAME

Psigpause - suspend process until a signal is received  

SYNOPSIS

void Psigpause( LONG mask );
 

DESCRIPTION

Psigpause sets a new signal mask and then causes the calling process to go to sleep until a signal that is not being ignored or masked is received. If a signal handler has been established for that signal with the Psignal system call, then the handler is invoked before Psigpause returns; if the handler does a longjmp to a different point in the program, if it exits the program, or if the signal handler was set to SIG_DFL and the default action for the signal is to terminate the process, then Psigpause will never return.

If Psigpause does return, then the signal mask is restored to what it was prior to the Psigpause system call, i.e. the new signal mask specified by mask is only temporary.  

SEE ALSO

Pause(2), Psigblock(2), Psignal(2), Psigsetmask(2)  

BUGS

If a signal handler doesn't return (for example, because it uses longjmp) then the signal mask is left set to mask.  

AUTHOR

Alex Kiernan


 

Index

NAME
SYNOPSIS
DESCRIPTION
SEE ALSO
BUGS
AUTHOR

This document was created by man2html, using the manual pages.
Time: 11:14:03 GMT, June 22, 2025